package com.xrc;

import java.util.Scanner;

public class Exercise08 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个0~99999的随机数");
        int number=sc.nextInt();
        int n=0;
        if(0<=number&&number<100000){
            while (number>0){
                number=number/10;
                n++;
                number=number;
            }
        }else {
            System.out.println("对不起，您输入的数有误");
        }
        System.out.println("你输入的是"+n+"位数");
    }
}
